usb: dwc2: Make OC protection configurable
authorMarek Vasut <[email protected]>
Wed, 27 Apr 2016 12:58:49 +0000 (14:58 +0200)
committerMarek Vasut <[email protected]>
Tue, 3 May 2016 17:21:18 +0000 (19:21 +0200)
commitb4fbd089e4b7ead53d4a27148f6df9c18572b1ce
tree47ae9bcad58d877eda2a6f0b08b6681e93e59f6e
parent618da5630b5629d1c506be17f642502b483dab1a
usb: dwc2: Make OC protection configurable

Introduce a new flag in the controller private data, which allows selectively
disabling the OC protection. Use the standard 'disable-over-current' OF prop
to set this flag. This OC protection must be disabled on EBV SoCrates rev 1.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Dinh Nguyen <[email protected]>
drivers/usb/host/dwc2.c